package com.googlecode.spruce.core;

import java.io.Serializable;
import java.util.Date;

public interface ServiceCheckResult extends Serializable
{
    /**
     * Get the name of the service check this result pertains to
     * 
     * @return
     */
    String getServiceCheck();

    /**
     * Get the host that ran this check
     * 
     * @return
     */
    String getHost();

    /**
     * Get the datetime that this check ran
     * 
     * @return
     */
    Date getDate();

    /**
     * Get a value returned from the service check plugin. Returns -1 for an
     * error.
     * 
     * @return
     */
    int getValue();

    /**
     * Get an optional message that was generated by the service check plugin.
     * 
     * @return
     */
    String getMessage();
}
